package com.suixun;

import com.suixun.enums.APICode;

/**
 * APIException.java
 * <p>
 * 描述：API异常代码描述
 *
 * @author <a href="mailto:huangy@17find.com">hellmash</a>
 * @version create on 2015-07-17 18:14
 *          <p>
 *          CopyRight(c)2015 杭州随寻科技有限公司 17find.com 版权所有
 */
public class APIException extends RuntimeException{

    private APICode apiCode;

    private Throwable ex;

    public APIException(APICode _apiCode, Exception _ex){
        this.apiCode = _apiCode;
        this.ex = _ex;
    }

    public APICode getApiCode() {
        return apiCode;
    }

    public void setApiCode(APICode apiCode) {
        this.apiCode = apiCode;
    }

    public Throwable getEx() {
        return ex;
    }

    public void setEx(Throwable ex) {
        this.ex = ex;
    }
}
